package com.eas.task.imports.datasource;

public class DsConfig {

    private String type;

    private String driverName;

    private String url;

    private String host;

    private String port;

    private String dbName;

    private String userName;

    private String password;

    public boolean valid() {
        if (DsConstants.TYPE_MYSQL.equals(type)) {
            driverName = DsConstants.MYSQL_DRIVER_NAME;
            url = DsConstants.MYSQL_URL;
            return true;
        }
        return false;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
